package com.jiawa.train.common.exception;

/**
 * @author zzl
 * @version 1.0
 */
public class BusinessException extends RuntimeException {
    private BusinessExceptionEnum e;

    public BusinessException(BusinessExceptionEnum e) {
        this.e = e;
    }

    /**
     * 获取
     * @return e
     */
    public BusinessExceptionEnum getE() {
        return e;
    }

    /**
     * 设置
     * @param e
     */
    public void setE(BusinessExceptionEnum e) {
        this.e = e;
    }

    public String toString() {
        return "BusinessException{e = " + e + "}";
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}
